package day01;

import java.util.Scanner;

public class Math01 {
    public static void main(String[] args) {
        System.out.println("请输入一个数");
        Scanner scanner=new Scanner(System.in);
        int number=scanner.nextInt();
        getNemvber(number);
   }

    public static void getNemvber(double number){

       double t=Math.sqrt(number);
       if (t%1==0){
           System.out.println(Math.sqrt(number));
       }else {
          double s= Math.floor(Math.sqrt(number));
           double i=number-s*s;
           System.out.print(s+"\t");
           getNemvber(i);

       }
    }
}
